package Jcat.cduestcbbs.Service;

import java.sql.SQLException;

import Jcat.cduestcbbs.Dao.RecordDao;
import Jcat.cduestcbbs.DaoImpl.RecordDaoImpl;
import Jcat.cduestcbbs.Po.RecordPo;

public class ChatService {
	RecordDao recordDao = new RecordDaoImpl();

	public boolean insertRecord(RecordPo record) {

		if (record.getRecordContent() == null) {

			return false;
		}
		boolean insertRecord = false;
		try {
			insertRecord = recordDao.insertRecord(record);
		} catch (SQLException e) {
			insertRecord = false;
			e.printStackTrace();
		}
		return insertRecord;

	}
}
